import {BaseUrl} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";


class MoneyModel {
    constructor() {
        this.url = BaseUrl
    }

    all(params) {
        let end = this.url + 'getuserbydetailpage '
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    date(params) {
        let end = this.url + 'getuserbydetailexcel'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    detail(params) {
        let end = this.url + 'getuserbydetail'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    compensate(params) {
        let end = this.url + 'handoutpropcostdetail'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

}

export default MoneyModel